package test09;

/**
 * Created by tianxiadiyishuai on 2017/10/24.
 */
public class Student {
    //属性：“学号”、“班号”、“姓名”、“性别”、“年龄”
    String schoolnumber;
    String classnumber;
    String name;
    String gender;
    String age;
    //行为：“获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”、，把Student类的对象的所有属性信息组合成一个字符串以便输出显示
    public String getSchoolnumber(){return schoolnumber;}
    public String getClassnumber(){return classnumber;}
    public String getName(){return name;}
    public String getGender(){return gender;}
    public String getAge(){return age;}
    public String toString(){return (schoolnumber+" "+classnumber+" "+name+" "+gender+" "+age);}
    public static void main(String[] args) {
        Student a=new Student();
        a.schoolnumber="学号：5201314";
        a.classnumber="班号：03班";
        a.gender="性别：男";
        a.name="姓名：帅无敌";
        a.age="年龄：19";
        System.out.println(a.toString());
    }
}
